﻿using SmartSpace.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace SmartSpace.OA
{
    [Table("oa_article")]
    public class Article : IKeyEntity
    {
        public const string TypeCategoryCode = "ARTICLETYPE";

        [Key]
        public Guid Id { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public string Creator { get; set; }
        public DateTime CreatedDate { get; set; }
        public string TypeCode { get; set; }
        public string TypeCaption { get; set; }


        public void Validation()
        {
            throw new NotImplementedException();
        }
    }
}
